package com.itheima.stock.exception;

import com.itheima.stock.enums.Code;

/**
 * @author zby
 * @created 2024-06-25 9:20
 * @description 异常抛出工具类
 */
public class Exceptions {


    /**
     *  对异常抛出代码封装
     */
    public static void cast(Code code){
        throw  new StockException(code);
    }


    /**
     *  构造私有化
     */
    private Exceptions(){

    }

}
